package tech.aistar.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Seat;
import tech.aistar.mapper.SeatMapper;

import java.util.List;

/**
 * 本类用来演示:
 *
 * @author jyz
 * @date 2023/3/5 17:43:07
 */
@Service
public class SeatService implements SeatMapper {
    @Autowired
    private SeatMapper seatMapper;

    @Override
    public List<Seat> findAll() {
        return seatMapper.findAll();
    }

    @Override
    public Seat getSeat(int id) {
        return seatMapper.getSeat(id);
    }

    @Override
    public int delete(int id) {
        return seatMapper.delete(id);
    }

    @Override
    public int save(Seat seat) {
        return seatMapper.save(seat);
    }

    @Override
    public int update(Seat seat) {
        return seatMapper.update(seat);
    }
}
